package com.myh.cc.coom.singer.view

import com.myh.cc.R
import com.myh.cc.base.BaseActivity
import com.myh.cc.coom.singer.net.SingerNetControl
import com.myh.cc.coom.singer.viewmodel.SingerDetailsModel
import com.myh.cc.databinding.ActivitySingerDetailsBinding

/**
 * des    ：
 * create    ：  mayahao.
 * date   ：  2018/1/16.   ：
 */
class SingerDetailsActivity: BaseActivity<ActivitySingerDetailsBinding,SingerNetControl,SingerDetailsModel>() {


    override fun getLayoutId(): Int {
        return R.layout.activity_singer_details
    }

    override fun initView() {
        var singermid = intent.extras.getString("singermid")
        mModel.getDetails(singermid)
        // 用rela 扩大点击范围
        mBinder.relaBack.setOnClickListener{view ->
            finish()
        }
    }
}